# ***meta charset="UTF-8"***
# @Time: 2021/2/4 22:01
# @Author: 邢光强
# @Email： 1062584918@qq.com
# @File： tools_xgq.py
# @Project: project

import xlrd
import os
tupian_path = os.path.dirname(os.path.dirname(__file__))
datas_path = os.path.join(tupian_path,"datas")

def data_xgq(filename=None):
    if filename is None:
        filename = "../datas/data_xgq.xls"
    workbook = xlrd.open_workbook(filename)
    table = workbook.sheet_by_index(0)
    return [table.row_values(row) for row in range(0,table.nrows)]
